package com.guxingke.typecho4j.util;

/**
 * 分页工具类<br/>
 * later equals never
 * 
 * @author guxingke
 * @copyright Copyright (c) 2015 typecho4j
 * @since 2015.5
 * @version 0.0.1-snapshot
 * */
public class PageBean {
	private int page;
	private int pageSize;

	public PageBean(int page, int pageSize) {
		super();
		this.page = page;
		this.pageSize = pageSize;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStart() {
		return (page - 1) * pageSize;
	}
}
